package com.zhuang.regex;

import java.util.regex.Pattern;

public class PatternMethod {
	public static void main(String[] args) {
		String content = "hello abc hello, kang";
		// String regStr = "hello";
		String regStr = "hello.*";
		boolean matches = Pattern.matches(regStr, content);
		System.out.println("整体匹配= " + matches);
	}
}
